package cn.zlp.hrm.client;

import cn.zlp.hrm.vo.UserContextInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * 用openfeign暴露接口
 * value:表示从负载均衡中调用那个服务 fallbackFactory:表示熔断回调
 * @program: hrm-parent
 * @author: Mr.Zhang
 * @create: 2022-01-10 00:15
 **/
@FeignClient(value = "SYSMANAGE-SERVICE",fallbackFactory = SysmanageServerFallBackFactory.class)
public interface SysmanageServerClient {

    @GetMapping("/employee/empAndTenant/{loginId}")
    UserContextInfo getEmpAndTenantByLoginId(@PathVariable("loginId")Long loginId);
}
